//
//  SMFPlugin.h
//  SMFManager
//
//  Created by ZhouYou on 2022/9/14.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface SMFPlugin : NSObject

@property (nonatomic, copy) NSString *module;

- (BOOL)enable;

- (NSString *)device_id;

- (void)ossGetWithAction:(NSString *)action complete:(void(^)(id response, NSString *error))result;

- (void)ossUploadWithAction:(NSString *)action
                    content:(id)content
              progressBlock:(void (^_Nullable)(CGFloat prorgess))progressBlock
                    success:(void (^_Nullable)(NSString *url))success
                    failure:(void (^_Nullable)(NSError *error))failure;

@end

NS_ASSUME_NONNULL_END
